package com.goalone.soundsystem.impl;

import com.goalone.soundsystem.CompactDisc;
import org.springframework.stereotype.Component;

import javax.inject.Named;
import java.io.Serializable;

/**
 * 类描述:
 *
 * @author zhangguoliang3909
 * @create 2018-09-11 09:54
 */
@Named("lonelyHeartsClub")
public class SgtPeppers implements CompactDisc,Serializable {
    private static final long serialVersionUID = -6212254930273971679L;

    private String title = "Sgt. Pepper's Lonely Hearts Club Band";
    private String artist = "The Beatles";

    @Override
    public void play() {
        System.out.println("Playing " + title + " by " + artist);
    }
}
